﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DashBoard/Master/Main.Master" AutoEventWireup="true" CodeBehind="DersProgrami.aspx.cs" Inherits="OgrIsleri.DashBoard.Modul.Siniflar.DersProgrami" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main_Body" runat="server">
     <fieldset>
                <div class="widget">
                    <div class="title"><img src="/images/icons/dark/list.png" alt="" class="titleIcon" /><h6>Ders Bilgileri</h6></div>
                     <div class="formRow">
                        <label>Dönem :</label>
                        <div class="formRight">
                            <asp:DropDownList ID="DpDonemler" runat="server" AppendDataBoundItems="True" OnSelectedIndexChanged="DpDonemler_SelectedIndexChanged" AutoPostBack="True">
                                <asp:ListItem Selected="True" Value="0">Dönem Seçiniz</asp:ListItem>
                            </asp:DropDownList>

                        </div>
                        <div class="clear"></div>
                    </div>

                     <div class="formRow">
                        <label>Ders :</label>
                        <div class="formRight">
                            <asp:DropDownList ID="DpDersler" runat="server" AppendDataBoundItems="True" AutoPostBack="True" OnSelectedIndexChanged="DpDersler_SelectedIndexChanged">
                                <asp:ListItem Selected="True" Value="0">Ders Seçiniz</asp:ListItem>
                            </asp:DropDownList>

                        </div>
                        <div class="clear"></div>
                    </div>

                     <div class="formRow">
                        <label>Akademisyenler :</label>
                        <div class="formRight">
                            <asp:DropDownList ID="DpAkademisyenler" runat="server" AppendDataBoundItems="True">
                                <asp:ListItem Selected="True" Value="0">Akademisyen Seçiniz</asp:ListItem>
                            </asp:DropDownList>

                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <label>Ders Günü :</label>
                        <div class="formRight">
                            <asp:DropDownList ID="DpGun" runat="server">
                                <asp:ListItem Selected="True" Value="0">Gün Seçiniz</asp:ListItem>
                                <asp:ListItem Value="1">Pazartesi</asp:ListItem>
                                <asp:ListItem Value="2">Salı</asp:ListItem>
                                <asp:ListItem Value="3">Çarşamba</asp:ListItem>
                                <asp:ListItem Value="4">Perşembe</asp:ListItem>
                                <asp:ListItem Value="5">Cuma</asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                        <label>Ders Saati :</label>
                        <div class="formRight">
                            <asp:DropDownList ID="DpSaat" runat="server">
                                <asp:ListItem Selected="True" Value="0">Saat Seçiniz</asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="clear"></div>
                    </div>

                    <div class="formRow">
                        <asp:Button ID="BtnKaydet" CssClass="button dblueB" runat="server" Text="Kaydet" OnClick="BtnKaydet_Click" />
                    </div>
                </div>
            </fieldset>

      <div class="widget">
          <div class="title"><img src="/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Kayıtlı Dersler</h6></div>
        <asp:Repeater ID="RptListe" runat="server">
            <HeaderTemplate>
            <table cellpadding="0" cellspacing="0" width="100%" class="display dTable">
                <thead>
                    <tr>
                        <td width="20px">#</td>
                        <td>Gün</td>
                        <td>Saat</td>
                        <td>Ders</td>
                        <td>Akademisyen</td>
                        <td width="20px">Güncelle</td>
                        <td width="20px">Sil</td>
                    </tr>
                </thead>
                <tbody>
                    </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td><%#Container.ItemIndex+1 %></td>
                        <td><%#Business.Tools.HaftaninGunleri((int)Eval("Gun")) %></td>
                        <td><%#Eval("Saat") %></td>
                        <td><%#Eval("tblDersler.DersAdi") %></td>
                        <td><%#Eval("aspnet_Users.tblAkademisyenDetaylari.AdSoyad") %></td>
                        <td><a href="<%#ResolveUrl("~/DashBoard/Modul/Siniflar/DersProgrami.aspx?Guncelle="+Eval("ID")+"&SinifID="+Request.QueryString["SinifID"]) %>"><img src="/images/icons/dark/pencil.png" /></a></td>
                        <td><a onclick="return confirm('Kayıtı Silmek İstediğinizden Emin Misiniz?')" href="<%#ResolveUrl("~/DashBoard/Modul/Siniflar/DersProgrami.aspx?DeleteID="+Eval("ID")+"&SinifID="+Request.QueryString["SinifID"]) %>"><img src="/images/icons/dark/close.png" /></a></td>
                    </tr>
                </ItemTemplate>
            <FooterTemplate>
                  </tbody>
            </table>
            </FooterTemplate>
        </asp:Repeater>
              
        </div>

        <asp:ValidationSummary ID="ValidSummary" runat="server" ShowMessageBox="True" ShowSummary="False" />
        <asp:RequiredFieldValidator ID="Valid1" runat="server" ErrorMessage="Lütfen Dönem Seçiniz" ControlToValidate="DpDonemler" InitialValue="0" Display="None"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="Valid2" runat="server" ErrorMessage="Lütfen Ders Seçiniz" ControlToValidate="DpDersler" InitialValue="0" Display="None"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="Valid3" runat="server" ErrorMessage="Lütfen Akademisyen Seçiniz" ControlToValidate="DpAkademisyenler" InitialValue="0" Display="None"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="Valid4" runat="server" ErrorMessage="Lütfen Gün Seçiniz" ControlToValidate="DpGun" InitialValue="0" Display="None"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="Valid5" runat="server" ErrorMessage="Lütfen Saat Seçiniz" ControlToValidate="DpSaat" InitialValue="0" Display="None"></asp:RequiredFieldValidator>

</asp:Content>
